class Solution:
    def findLengthOfLCIS(self, nums):
        curr_len = 1
        max_len = 1
        for i in range(1,len(nums)):
            if nums[i] > nums[i-1]:
                curr_len += 1
                max_len = max(curr_len, max_len)
            else:
                curr_len = 1
        return max_len
if __name__ == '__main__':
    nums = [1,3,5,4,7]
    print(Solution().findLengthOfLCIS(nums))